Online Quiz
CodingGita HTML Quiz
Answer the following 10 questions. Select only one option for each question and submit your answers.
Q1: Which HTML tag is used to display preformatted text exactly as written?
<pre>
<code>
<tt>
<text>
Q2: Which attribute is used to specify where to open a linked document?
href
target
rel
type
Q3: Which HTML element is used to define the largest heading?
<h6>
<heading>
<h1>
<head>
Q4: Which attribute in <img> is mandatory for accessibility and when the image fails to load?
src
title
alt
id
Q5: Which HTML tag is used to group a set of options inside a <select> dropdown?
<option>
<group>
<optgroup>
<fieldset>
Q6: Which tag is used to display tabular data in rows and columns?
<table>
<tab>
<grid>
<rows>
Q7: Which HTML element is used to define a short inline quotation?
<quote>
<blockquote>
<q>
<cite>
Q8: Which input type creates a slider control for numerical values?
text
number
range
slider
Q9: Which attribute in the <form> tag specifies where the form data is sent?
method
action
enctype
target
Q10: Which HTML element is used to mark text that is no longer relevant or has been removed?
<strike>
<s>
<del>
<remove>